/*
 * Author:        Pierre-Henry Soria <ph7software@gmail.com>
 * Copyright:     (c) 2012-2019, Pierre-Henry Soria. All Rights Reserved.
 * License:       MIT License; See LICENSE.md and COPYRIGHT.md in the root directory.
 */

.input_error {
    float: left;
    margin-left: 2em;
    font-size: .95em;
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Myriad Pro", Tahoma, Arial, Verdana, sans-serif;
}

.warn_msg {
    color: #C09853;
    font-size: 12px;
    padding: 10%;
}

label {
    display: block;
}

button {
    margin: 6px;
}

button.success {
    font-weight: bold;
}

button:active {
    color: #000;
}

border:hover, border:active {
    border: 2px solid #000;
}

.is_checked {
    background: #FF8;
}

textarea {
    width: 100% !important;
    min-height: 10rem !important;
    white-space: pre-line !important;
}

input:not([type=image]):not([type=range]), textarea, select {
    box-sizing: content-box; /* Bugfix with Botstrap for transition in forms */
    font-size: 14px;
    border: 1px solid #ccc;
    color: #3F3F3F;
    text-shadow: 0 1px 0 rgba(200, 200, 200, .6);
    box-shadow: 1px 1px 4px #aaa inset;
    border-radius: 5px;
    transition: border linear 0.3s, box-shadow linear 0.3s;
    -webkit-transition: border linear 0.3s, box-shadow linear 0.3s;
    -moz-transition: border linear 0.3s, box-shadow linear 0.3s;
    -o-transition: border linear 0.3s, box-shadow linear 0.3s;
    -ms-transition: border linear 0.3s, box-shadow linear 0.3s;
    -khtml-transition: border linear 0.3s, box-shadow linear 0.3s;

    transition: padding .25s;
    -moz-transition: padding .25s;
    -webkit-transition: padding .25s;
    -o-transition: padding .25s;
    -ms-transition: padding .25s;
    -khtml-transition: padding .25s;
    white-space: nowrap;
}

input:focus:not([type=image]):not([type=range]):not(.form_link), textarea:focus, select:focus {
    outline: 0;
    border-color: rgba(82, 168, 236, .8);
    box-shadow: 1px 1px 4px #aaa inset, 0 0 8px rgba(82, 168, 236, .6);
    padding-right: 10px;
}

input, textarea {
    padding: 7px;
}

select {
    padding: 6px 7px;
}

.captcha {
    height: 60px;
    width: 70%;
    border-radius: 5px;
}

.captcha_button {
    margin: 4px;
    float: right;
}

input:focus, textarea:focus {
    background-position: 98%;
    background-repeat: no-repeat;
}

input:focus:invalid:not([type=submit]):not([type=radio]):not([type=file]):not([type=date]), textarea:focus:invalid:not(.chatboxtextarea) {
    border: solid 1px #d9534f;
}

.form_link, .form_link div[id^=pfbc-element-] {
    display: inline;
}

.form_link input[type=submit] {
    color: #08c;
    outline-style: none;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    border: none;
    background: none;
    text-shadow: none;
    box-shadow: none;
    border-radius: 0;
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    -ms-transition: none;
    -khtml-transition: none;
}

.form_link input[type=submit]:hover, .form_link input[type=submit]:active {
    color: #F24C9E;
    text-decoration: underline;
    text-shadow: 0 0 5px #fff, 0 0 8px rgba(255, 255, 255, .6);
}

input[type=checkbox], input[type=radio] {
    margin-right: 4px;
}

input[disabled],
button[disabled],
select[disabled],
textarea[disabled],
input[readonly],
button[readonly],
select[readonly],
textarea[readonly] {
    background-color: #ddd;
}

input[disabled],
button[disabled],
select[disabled],
textarea[disabled] {
    cursor: not-allowed !important;
}

/* Bugfix: With some Unix Chrome versions, type=image cursor is "default" and not pointer */
form input[type=image] {
    cursor: pointer;
}

/* Remove .form_link text decoration if bootstrap button is set */
.btn input:hover {
    text-decoration: none !important;
}
